package com.etc.datasource.controller;

import com.etc.datasource.mapper.show.ShowMapper;
import com.etc.datasource.mapper.test.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    ShowMapper showMapper;

    @Autowired
    TestMapper testMapper;

    @GetMapping("/show")
    public Integer show(){
        return showMapper.count();
    }

    @GetMapping("/test")
    public Integer test(){
        return testMapper.count();
    }

}
